<?php
/**
 * 数据库配置，读写分离。
 **/
class DBConfig{

	//读写主库配置
	public static $write = array(
                                        'host' => 'localhost',
                                        'username' => 'root',
                                        'password' => '',
                                        'dbname' => 'fmac'
                                    );
	//只读库配置
	public static $readonly = array(
                                          'host' => 'localhost',
                                            'username' => 'root',
                                            'password' => '',
                                            'dbname' => 'fmac'
                                        );
}
?>